<?php
/*
Extension Name: Dplayer
Extension Url: http://lussumo.com/addons/
Description: Turns plain links to mp3 files into playable icons.
Version: 1.0.3
Author: Wanderer - Joe Debono
Author Url: http://www.debono.com.au/forum/
*/

if (in_array($Context->SelfUrl, array('index.php', 'categories.php', 'comments.php', 'post.php'))) {

  class debplayer extends Control {
    var $Context;
    function debplayer(&$Context) {
      $this->Name = 'debplayer';
      $this->Context = &$Context;
    }

    function Render() {
      echo '<script type="text/javascript" src="'.$this->Context->Configuration['BASE_URL'].'extensions/Dplayer/player.js"></script>';
    }
  }

  $debplayer = new debplayer($Context);
  $Page->AddRenderControl($debplayer,
  $Configuration['CONTROL_POSITION_FOOT'] - 5);
}
?>

